package com.stu.mapper;

import com.github.pagehelper.Page;
import com.stu.bean.Goods;
import com.stu.bean.Orders;
import com.stu.bean.OrdersExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrdersMapper {
    long countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(Integer oid);

    int insert(Orders record);

    int insertSelective(Orders record);

    Page<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(Integer oid);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);
    Page<Orders> selectOrders(@Param("orders") Orders orders, @Param("strDate") Date strDate, @Param("endDate") Date endDate);

    Orders selectOrdersByname(String oimg);
}